package com.middlegroup.subjectpay.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.middlegroup.subjectpay.entity.SubjectChannelConfig;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 主体端通道配置表 Mapper 接口
 * </p>
 *
 * @author pc123
 * @since 2019-01-14
 */
public interface SubjectChannelConfigMapper extends BaseMapper<SubjectChannelConfig> {

    /**获取配置
     * @param category
     * @param name
     * @return
     */
    SubjectChannelConfig getConfig(@Param("category")String category, @Param("name")String name);


    /**判断配置是否存在
     * @param category
     * @param name
     * @return
     */
    int exist(String category,String name);

    /**更新配置
     * @param category
     * @param name
     * @param content
     * @return
     */
    int updateConfig(String category,String name,String content);

    /**删除配置
     * @param category
     * @param name
     * @return
     */
    int removeConfig(String category,String name);

}
